package com.mypage.view.activity;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.cloudcc.mobile.R;
import com.cloudcc.mobile.manager.RunTimeManager;

public class PromptUserActivity extends Activity {
	private String mEns = RunTimeManager.getInstance().getlanguage();
	public Button btnWebDown,mBtnBack;
	public TextView bar_title_text;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.prompt_user);
		mBtnBack = (Button) findViewById(R.id.mBtnBack);
		btnWebDown = (Button) findViewById(R.id.btnWebDown);
		bar_title_text = (TextView) findViewById(R.id.bar_title_text);
if ("en".equals(mEns)) {
	bar_title_text.setText("Bind the device");
		}else{
			bar_title_text.setText("绑定设备");
		}
		
		initListener();
	}
	private void initListener() {
		// TODO Auto-generated method stub
		btnWebDown.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Uri uri = Uri.parse("http://sj.qq.com/myapp/detail.htm?apkName=com.secken.app.android");
				Intent it = new Intent(Intent.ACTION_VIEW, uri);
				startActivity(it);
			}
		});
		mBtnBack.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
	}
}
